package cn.zane.chatgpt.data.types.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: zane
 * @date: 2025-09-30
 * @description: TODO
 */
@Getter
@AllArgsConstructor
public enum ResultCode {

    OK(200, "操作成功"),
    FAIL(500, "未知异常，请联系管理员"),
    MISSING_PARAMETER(501, "缺少参数"),
    CONVERT_ERROR(700, "类型转换异常"),
    ASSERT_ERROR(701, "断言异常"),
    AUTH_NOT_LOGIN(900, "当前未登录或访问令牌过期，请重新登录"),
    PWD_OR_LOGIN_ERROR(901, "用户名或密码错误"),
    ;

    private final int code;
    private final String describe;
}
